﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI.HtmlControls;
using System.Web.UI;

namespace wLib.Objects
{
    public class FactoryStyle : IFactory
    {
        #region Fields

        wlibComponent _pageInContext;

        #endregion

        public FactoryStyle(wlibComponent pageInContext)
        {
            _pageInContext = pageInContext;
        }

        #region IFactory Members

        public string CreateFactoryScenario(eNumComponent controlType)
        {
            string wsStyle = string.Empty;

            switch (controlType)
            {
                case eNumComponent.wTable:
                    WorkStyleForTable();
                    break;
                default:
                    break;
            }

            return wsStyle;
        }

        #endregion


        //Passar isso aqui para classe controller da table, ela existe?
        private void WorkStyleForTable()
        {
            //Implementar objeto generico que traz informações e objetos das distintas fabricas para serem trabalhodos e registrados na page client
            IStyleController styleTable = new cStyleCss(_pageInContext);           
            styleTable.WorkItStyle(eNumComponent.wTable);
        }

    }

}
